package com.yy.QSManage.tool;

import com.baomidou.mybatisplus.annotation.TableField;
import com.yy.QSManage.model.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.*;

@Data
@Accessors(chain = true)
public class TreeNode<T> extends BaseEntity implements Serializable {
    private String id;
    private String pid;
    @TableField(exist = false)
    private List<T> children = new ArrayList();
    @TableField(exist = false)
    @ApiModelProperty("组织id朔源集合")
    private List<String> parentIds = new ArrayList();
}